<?php get_header(); ?>
<div id="wrap">
<div id="content-container">
	
	<div id="content">
	<div id="sidecontainer">
       <div style="float:left">
        <?php get_sidebar(); ?>
      </div>
	  
	  </div>
	<div class="post-container">
	<?php if (have_posts()) : ?>

		<?php while (have_posts()) : the_post(); ?>
		<div class="post">
		<div class="posttop">
		   <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
              <?php the_title(); ?>
              </a></h2>
        </div>
		<div class="entry">
		<div id="date">
            <p class="month">
              <?php the_time('M'); ?>
            </p>
            <p class="day">
              <?php the_time('d'); ?>
            </p>
			
          </div>
		<?php the_excerpt() ?>
		</div>
		<div class="postbottom">
            <div class="metainf">Filled Under:
              <?php the_category(', ') ?>
            </div>
            <div class="commentinf">
              <?php comments_popup_link('Sin Comentarios', '1 Comentario', '% Comentarios'); ?>
            </div>
          </div>
		</div>
		<?php endwhile; ?>

		<?php include (TEMPLATEPATH . '/navoptions.php'); ?>
	
	<?php else : ?>
	<div class="post">
		<div class="posttop">
		<h2>Sin Resultados</h2>
		</div>
		<div class="entry">
	
	<p class="center">Lo sentimos, no hay resultados para su busqueda</p><br><br>
	<div id="listacat">
						<?php query_posts('cat=1&showposts=4'); ?>
						<ul>
							<h2>Noticias</h2>
							<?php while (have_posts()) : the_post(); ?>
							<li>
								<a href="<?php the_permalink(); ?>" title="Leer <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
							</li>
							<?php endwhile;?>
						</ul>
					</div>			
					
					<div id="listacat">
						<?php query_posts('cat=4&showposts=4'); ?>
						<ul>
							<h2>Slide</h2>
							<?php while (have_posts()) : the_post(); ?>
							<li>
								<a href="<?php the_permalink(); ?>" title="Leer <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
							</li>
							<?php endwhile;?>
						</ul>
					</div>	
							
					
					<div id="listacat">
						<?php query_posts('cat=5&showposts=4'); ?>
						<ul>
							<h2>Desayunos</h2>
							<?php while (have_posts()) : the_post(); ?>
							<li>
								<a href="<?php the_permalink(); ?>" title="Leer <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
							</li>
							<?php endwhile;?>
						</ul>
					</div>	

	<br /><br />
	
	</div>
	<div class="postbottom">
     
         </div>
	</div>
	
	<?php endif; ?>
	</div>
	
</div>
<div class="bgbottom"></div>
</div>
</div>
<?php get_footer(); ?>